package com.ant.storage.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * @author melon
 * @since 2023-11-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cashbook_type")
@ApiModel(value="CashbookType对象", description="")
public class CashbookType implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer pid;

    @TableField("cashbook_name")
    private String cashbookName;

    @TableField("cashbook_key")
    private String cashbookKey;

    @TableField("cashbook_vaule")
    private String cashbookVaule;

    @TableField("cashbook_sort")
    private Integer cashbookSort;

    @TableField("cashbook_icon")
    private String cashbookIcon;

    @TableField("cashbook_explain")
    private String cashbookExplain;

    @TableField("subject_ids")
    private String subjectIds;

    @TableField(exist = false)
    private List<CashbookType> children;

}
